package cn.ad.exception;

public class CreativeValidateException extends ValidateException{
	
	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;

	public static enum ErrorCode implements BaseErrorCode{
		CREATIVE_NOTFOUND(20501,"Service.err.creative.not.found"),
		CREATIVE_REPEAT(20502,"Service.err.creative.repeat"),
		CREATIVE_ADFORMAT_CHANGE(20503, "Service.err.creative.adformat.change"),
		CREATIVE_PLATFORM_CHANGE(20504, "Service.err.creative.native.platform.change"),
		CREATIVE_ADTEMPLATE_CHANGE(20505, "Service.err.creative.native.adtemplate.change"),

		CREATIVE_CREATIVEGROUP_CHANGE(20506, "Service.err.creative.creativeGroup.change"),
		CREATIVE_INTERACTIONTYPE_CHANGE(20507, "Service.err.creative.interaction.type.change"),
		CREATIVE_CREATIVEGROUP_NOTFOUND(20508, "Service.err.creative.creativeGroup.not.found"),
		CREATIVE_UPDATE_STATUS_FAILURE(20509, "Service.err.creative.update.status.failure"),
		
		CREATIVE_NATIVE_PLATFORM_NOTFOUND(20510, "Service.err.creative.native.platform.not.found"),
		CREATIVE_NATIVE_ADTEMPLATE_NOTFOUND(20511, "Service.err.creative.native.adtemplate.not.found"),
		CREATIVE_SIZE_ID_NOTFOUND(20512, "Service.err.creative.sizeId.not.found"),
		CREATIVE_TEMPLATE_INTERACTION_TYPE_NOTMATCH(20513, "Service.err.creative.template.interaction.not.match"),
		CREATIVE_TEMPLATE_SPEC_LIST_NOTFOUND(20514, "Service.err.creative.template.spec.list.not.found");
		
		private int value;
		
		private String desc;

		private ErrorCode(int value, String desc) {
			this.value = value;
			this.desc = desc;
		}

		public int getValue() {
			return value;
		}

		public String getDesc() {
			return desc;
		}
	}
	
	public CreativeValidateException(BaseErrorCode code) {
		super(code);
	}
	
	public CreativeValidateException() {
		super();
	}

	public CreativeValidateException(String message, Throwable cause, boolean enableSuppression,
                                     boolean writableStackTrace) {
		super(message, cause, enableSuppression, writableStackTrace);
	}

	public CreativeValidateException(String message, Throwable cause) {
		super(message, cause);
	}

	public CreativeValidateException(String message) {
		super(message);
	}

	public CreativeValidateException(Throwable cause) {
		super(cause);
	}
	
	
}
